home *** CD-ROM | disk | FTP | other *** search
-
-
-
- bbbbrrrrkkkk((((2222)))) bbbbrrrrkkkk((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- brk, sbrk - change data segment space allocation
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
-
- iiiinnnntttt bbbbrrrrkkkk ((((vvvvooooiiiidddd ****eeeennnnddddddddssss))));;;;
-
- vvvvooooiiiidddd ****ssssbbbbrrrrkkkk ((((ssssssssiiiizzzzeeee____tttt iiiinnnnccccrrrr))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _bbbb_rrrr_kkkk and _ssss_bbbb_rrrr_kkkk are used to change dynamically the amount of space allocated
- for the calling process's data segment [see _eeee_xxxx_eeee_cccc(2)]. The change is made
- by resetting the process's break value and allocating the appropriate
- amount of space. The break value is the address of the first location
- beyond the end of the data segment. The amount of allocated space
- increases as the break value increases. Newly allocated space is set to
- zero. If, however, the same memory space is reallocated to the same
- process its contents are undefined.
-
- _bbbb_rrrr_kkkk sets the break value to _e_n_d_d_s and changes the allocated space
- accordingly.
-
- _ssss_bbbb_rrrr_kkkk adds _i_n_c_r bytes to the break value and changes the allocated space
- accordingly. _i_n_c_r can be negative, in which case the amount of allocated
- space is decreased.
-
- _bbbb_rrrr_kkkk and _ssss_bbbb_rrrr_kkkk will fail without making any change in the allocated space
- if one or more of the following are true:
-
- _EEEE_NNNN_OOOO_MMMM_EEEE_MMMM Such a change would result in more space being
- allocated than is allowed by the system-imposed maximum
- process size [see _uuuu_llll_iiii_mmmm_iiii_tttt(2)].
-
- _EEEE_AAAA_GGGG_AAAA_IIII_NNNN Total amount of system memory available for a read
- during physical IO is temporarily insufficient [see
- _ssss_hhhh_mmmm_oooo_pppp(2)]. This may occur even though the space
- requested was less than the system-imposed maximum
- process size [see _uuuu_llll_iiii_mmmm_iiii_tttt(2)].
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _eeee_xxxx_eeee_cccc(2), _ssss_hhhh_mmmm_oooo_pppp(2), _uuuu_llll_iiii_mmmm_iiii_tttt(2), _eeee_nnnn_dddd(3C).
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- _ssss_bbbb_rrrr_kkkk(2) is not multithreaded. Simultaneous _ssss_bbbb_rrrr_kkkk calls with positive
- increments will return the same value. It is recommended that _mmmm_aaaa_llll_llll_oooo_cccc_((((_2222_))))
- be used instead of _ssss_bbbb_rrrr_kkkk_((((_2222_)))).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _bbbb_rrrr_kkkk returns a value of 0 and _ssss_bbbb_rrrr_kkkk returns the
- old break value. Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set
- to indicate the error.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- bbbbrrrrkkkk((((2222)))) bbbbrrrrkkkk((((2222))))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
-